<div class="box_contact_left">
    <p><img src="catalog/view/theme/<?php echo $template; ?>/images/text_news.png"/></p>
    <div class=" p15t box_news_left">
        <?php if(!empty($contents)){ ?>
            <?php if(isset($contents[0])){ ?>
                <div class="p3b boder_bt_do">
                    <p class="day"><?php echo $contents[0]['date']; ?></p>
                    <a href="<?php echo $contents[0]['href']; ?>"><?php echo $contents[0]['text']; ?></a>
                </div>   
            <?php } ?>
            <?php if(isset($contents[1])){ ?>            
                <div class="p3b boder_bt_do p3t">
                    <p class="day"><?php echo $contents[1]['date']; ?></p>
                    <a href="<?php echo $contents[1]['href']; ?>"><?php echo $contents[1]['text']; ?></a>
                </div>
            <?php } ?>
            <?php if(isset($contents[2])){ ?> 
                <div class="p3b boder_bt_do p3t">
                    <p class="day"><?php echo $contents[2]['date']; ?></p>
                    <a href="<?php echo $contents[2]['href']; ?>"><?php echo $contents[2]['text']; ?></a>
                </div>
            <?php } ?>
            <?php if(isset($contents[3])){ ?>            
                <div class="p3t">
                    <p class="day"><?php echo $contents[3]['date']; ?></p>
                    <a href="<?php echo $contents[3]['href']; ?>"><?php echo $contents[3]['text']; ?></a>
                </div>
            <?php } ?>
        <?php } ?>
    </div>
</div>